// Ellinia <-> Leafre

void portal(Player @player, Portal @portal) {
if (player.getItemAmount(4031346) > 0) {
	player.giveItem(4031346, -1);
	player.showMessage("The Magical Seed is spent and you are transferred to somewhere.");
	if (player.getMap().getID() == 240010100)
		player.changeMap(101010000, "minar00");
	else
		player.changeMap(240010100, "elli00");
} else {
	player.showMessage("The Magic Seed is needed in order to go through the portal.");
}
}